package com.foolishbird.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.foolishbird.sdk.params.bean.PhoneBindObj;
import com.foolishbird.sdk.params.bean.RegistObj;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;


public class BindPhoneReuqestParams extends BaseRequestParams implements Serializable {

    private static final String SERVICE = "bind_phone";



    public BindPhoneReuqestParams() {
    }

    @SerializedName("extended_fb")
    private PhoneBindObj extendedFB = new PhoneBindObj();

    @Override
    public Object getBusinissJson() {
        return extendedFB;
    }

    public PhoneBindObj getExtendedFB() {
        return extendedFB;
    }

    public void setExtendedFB(PhoneBindObj extendedFB) {
        this.extendedFB = extendedFB;
    }


    public BindPhoneReuqestParams(String phone, String verify) {
        extendedFB.setPhone(phone);
        extendedFB.setCode(verify);
//        this.phone = phone;
//        this.verify = verify;
    }

    public BindPhoneReuqestParams(String phone, String uid, String verify) {
        extendedFB.setPhone(phone);
        extendedFB.setCode(verify);
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }




}
